IRedisList<T>
Wrap the common redis list operations under a IList[string] interface.
Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IRedisList<T> : IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, IHasStringId, IHasId<string>
Methods
GetAll()
View Source
Declaration
List<T> GetAll()
Returns
System.Collections.Generic.List<<T>>
GetRange(Int32, Int32)
View Source
Declaration
List<T> GetRange(int startingFrom, int endingAt)
Returns
System.Collections.Generic.List<<T>>
Parameters
Type | Name |
---|---|
System.Int32 | startingFrom |
System.Int32 | endingAt |
GetRangeFromSortedList(Int32, Int32)
View Source
Declaration
List<T> GetRangeFromSortedList(int startingFrom, int endingAt)
Returns
System.Collections.Generic.List<<T>>
Parameters
Type | Name |
---|---|
System.Int32 | startingFrom |
System.Int32 | endingAt |
RemoveAll()
View Source
Declaration
void RemoveAll()
Trim(Int32, Int32)
View Source
Declaration
void Trim(int keepStartingFrom, int keepEndingAt)
Parameters
Type | Name |
---|---|
System.Int32 | keepStartingFrom |
System.Int32 | keepEndingAt |
RemoveValue(T)
View Source
Declaration
long RemoveValue(T value)
Returns
System.Int64
Parameters
Type | Name |
---|---|
<T> | value |
RemoveValue(T, Int32)
View Source
Declaration
long RemoveValue(T value, int noOfMatches)
Returns
System.Int64
Parameters
Type | Name |
---|---|
<T> | value |
System.Int32 | noOfMatches |
AddRange(IEnumerable<T>)
View Source
Declaration
void AddRange(IEnumerable<T> values)
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<<T>> | values |
Append(T)
View Source
Declaration
void Append(T value)
Parameters
Type | Name |
---|---|
<T> | value |
Prepend(T)
View Source
Declaration
void Prepend(T value)
Parameters
Type | Name |
---|---|
<T> | value |
RemoveStart()
View Source
Declaration
T RemoveStart()
Returns
<T>
BlockingRemoveStart(Nullable<TimeSpan>)
View Source
Declaration
T BlockingRemoveStart(TimeSpan? timeOut)
Returns
<T>
Parameters
Type | Name |
---|---|
System.Nullable<System.TimeSpan> | timeOut |
RemoveEnd()
View Source
Declaration
T RemoveEnd()
Returns
<T>
Enqueue(T)
View Source
Declaration
void Enqueue(T value)
Parameters
Type | Name |
---|---|
<T> | value |
Dequeue()
View Source
Declaration
T Dequeue()
Returns
<T>
BlockingDequeue(Nullable<TimeSpan>)
View Source
Declaration
T BlockingDequeue(TimeSpan? timeOut)
Returns
<T>
Parameters
Type | Name |
---|---|
System.Nullable<System.TimeSpan> | timeOut |
Push(T)
View Source
Declaration
void Push(T value)
Parameters
Type | Name |
---|---|
<T> | value |
Pop()
View Source
Declaration
T Pop()
Returns
<T>
BlockingPop(Nullable<TimeSpan>)
View Source
Declaration
T BlockingPop(TimeSpan? timeOut)
Returns
<T>
Parameters
Type | Name |
---|---|
System.Nullable<System.TimeSpan> | timeOut |
PopAndPush(IRedisList<T>)
View Source
Declaration
T PopAndPush(IRedisList<T> toList)
Returns
<T>
Parameters
Type | Name |
---|---|
ServiceStack.Redis.Generic.IRedisList<T> | toList |